from django.urls import path
from . import views
from rest_framework.routers import DefaultRouter

app_name = 'staff'

router = DefaultRouter(trailing_slash=False)
router.register("staff", views.StaffViewSet, basename="staff")

urlpatterns = [
    path('departments', views.Department.as_view(), name="deparments"),
    # path('staff', views.StaffView.as_view(), name="staff_view"),
    path('active', views.ActiveStaffView.as_view(), name="active_staff"),
    path('test/celery', views.TestCeleryView.as_view(), name="test_celery"),
    path('download', views.StaffDownloadView.as_view(), name='download_staff'),
    path('upload', views.StaffUploadView.as_view(), name="upload_staff")
] + router.urls